
using Microsoft.SPOT.Presentation;
using Microsoft.SPOT.Presentation.Controls;



namespace Microsoft.NETMF.BikeComputer.Application
{
    public class ReadyView : View
    {

        public ReadyView(RideDataModel model) : base(model)
        {

            ////////////////////////////////////////////////////////////////////////////////////////
            //  Title area
            //

            StackPanel titlePanel = new StackPanel(Orientation.Vertical);
            titlePanel.HorizontalAlignment = HorizontalAlignment.Center;
            titlePanel.VerticalAlignment = VerticalAlignment.Top;

            Image titleBMP = new Image(Resources.GetBitmap(Resources.BitmapResources.ReadyViewImage));
            titleBMP.SetMargin(0, 0, 0,0);

            titleBMP.HorizontalAlignment = HorizontalAlignment.Center;
            titleBMP.VerticalAlignment = VerticalAlignment.Center;

            titlePanel.Children.Add(titleBMP);

            Child = titlePanel;

        }
 
       
    }
}
